package com.zjy.pgcms.mapper;

import com.zjy.pgcms.dto.reservation.ReservationInfo;
import com.zjy.pgcms.dto.reservation.ReservationPage;
import com.zjy.pgcms.entity.Reservation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.zjy.pgcms.entity.Reservation
 */
public interface ReservationMapper extends BaseMapper<Reservation> {
    List<ReservationInfo> getReservation(Long userId);
    List<ReservationInfo> getReservationCompleted();
    List<ReservationInfo> getReservationUnExpired();
    List<ReservationInfo> getReservationExpired();

    List<ReservationInfo> selectReservationByMap(Map<String,Object> params);
    List<ReservationPage> selectByPage(Map<String,Object> params);
    int setStatus(Map<String,Object> map);
}




